#ifndef __LOGPARSER_H__
#define __LOGPARSER_H__

#include "Parser.h"
#include "../WorldModelNode.h"
#include <fstream>
#include <vector>

class LogParser
{
public:
	LogParser();
	~LogParser();

	bool MonitorLogParse( std::string logPath, std::vector<WorldModelNode*> &wm );
	WorldModelNode& WM( unsigned int idx );
	unsigned int WMSize();

private:
	float m_Time;
	std::string m_NameTeamLeft;
	std::string m_NameTeamRight;
	int m_ScoreLeft;
	int m_ScoreRight;
	
	void SetInfo( WorldModelNode *wmNode );
	bool LineParse( Predicate** pred, const std::string &msg );
	void Clear( Predicate* root );
};

#endif //__LOGPARSER_H__